<?php

namespace App\Http\Requests\ShopAdmin\Goods;

use App\Http\Requests\Request;


class GoodsStockOpreationRequest extends Request
{
    /**
     * Determine if the user is authorized to make this request.
     *
     * @return bool
     */
    public function authorize()
    {
        return true;
    }

    /**
     * 验证规则
     *
     * @return array
     */
    public function rules()
    {
        $rules =  [
            'goods_stock' => 'required',
        ];

        return $rules;

    }


    /**
     * 验证信息
     * @return array
     */

    public function messages()
    {
        return [
            'goods_stock.required'=>'请填写商品库存量',
        ];
    }

}
